/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.BasProject.DomainModels
{
    [Entity(TableCnName = "工治具台账",TableName = "Bas_Toolings",DBServer = "ServiceDbContext")]
    public partial class Bas_Toolings:ServiceEntity
    {
        /// <summary>
       ///工治具类型Id
       /// </summary>
       [Display(Name ="工治具类型Id")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? ToolingTypeId { get; set; }

       /// <summary>
       ///工治具ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="工治具ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long ToolingId { get; set; }

       /// <summary>
       ///工治具编码
       /// </summary>
       [Display(Name ="工治具编码")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ToolingCode { get; set; }

       /// <summary>
       ///工治具名称
       /// </summary>
       [Display(Name ="工治具名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ToolingName { get; set; }

       /// <summary>
       ///工治具描述
       /// </summary>
       [Display(Name ="工治具描述")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string ToolingDesc { get; set; }

       /// <summary>
       ///工治具图片
       /// </summary>
       [Display(Name ="工治具图片")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ToolingPicture { get; set; }

       /// <summary>
       ///工治具状态
       /// </summary>
       [Display(Name ="工治具状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ToolingStatus { get; set; }

       /// <summary>
       ///归属工厂
       /// </summary>
       [Display(Name ="归属工厂")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? PlantId { get; set; }

       /// <summary>
       ///归属车间
       /// </summary>
       [Display(Name ="归属车间")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? WorkshopId { get; set; }

       /// <summary>
       ///采购时间
       /// </summary>
       [Display(Name ="采购时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? PurchaseDate { get; set; }

       /// <summary>
       ///资产编号
       /// </summary>
       [Display(Name ="资产编号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string AssetNo { get; set; }

       /// <summary>
       ///入资时间
       /// </summary>
       [Display(Name ="入资时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? AssetDate { get; set; }

       /// <summary>
       ///资产状态
       /// </summary>
       [Display(Name ="资产状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? AssetStatus { get; set; }

       /// <summary>
       ///供应商id
       /// </summary>
       [Display(Name ="供应商id")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? VendorId { get; set; }

       /// <summary>
       ///制造商
       /// </summary>
       [Display(Name ="制造商")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Manufacture { get; set; }

       /// <summary>
       ///入场时间
       /// </summary>
       [Display(Name ="入场时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EntranceDate { get; set; }

       /// <summary>
       ///验收时间
       /// </summary>
       [Display(Name ="验收时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CertificateDate { get; set; }

       /// <summary>
       ///验收结果
       /// </summary>
       [Display(Name ="验收结果")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string CertificateResult { get; set; }

       /// <summary>
       ///是否启用
       /// </summary>
       [Display(Name ="是否启用")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Enabled { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int IsValid { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       
    }
}